/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-05-14
 * Time: 20:17
 */
public class Cat extends Animal{//子类

//    public Cat(String name, int age, String gender) {
//        this.name = name;
//        this.age = age;
//        this.gender = gender;
//    }

    public static String name = "XiaHuang";

    @Override
    public String toString() {
        return "Cat{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                '}';
    }

    public void mimi(){
        System.out.println(name + " 正在喵喵叫!");
    }

}
